import { baseURL, } from '!/app.json'
import { request } from "./request";


/**
 * [getUserListByDoctor 获取任务列表
 * @param  doctor_phone  当前手机号
 */
export const getUserListByDoctor: any = (data) => {
    return request.post(`${baseURL}Weixin/BindDoctor/getUserList`, { data });
};


/**
 * [getUserDeviceListByDoctor 获取用户设备信息
 * @param  user_id  用户id
 */
export const getUserDeviceListByDoctor: any = (data) => {
    return request.post(`${baseURL}Weixin/BindDoctor/getUserDeviceList
`, { data });
};

/**
 * [getWuXueCourseApi 获取五穴同频小包
 * @param id 大包的title_id=>则获取小包信息
 * @param course_id 小包id
 */
export const getWuXueCourseApi: any = (data) => {
    return request.post(`${baseURL}Weixin/UserCourse/getWuXueCourse`, { data });
};

/**
 * [getWuXueCourseApi 发布留言
 * @param device_sn yy01编号
 * @param audio_url 音频URL
 * @param audio_id 音频ID
 * @param duration 发布时长
 */
export const addLeaveMessageApi: any = (data) => {
    return request.post(`${baseURL}Weixin/WxGuardian/leaveMessage`, { data });
};